package main.model.critters.genetics;

public class CritterLocation {
	private int oldx, oldy;
	private int aimx, aimy;

	public CritterLocation(int aimx, int aimy){
        this.aimx = aimx;
        this.aimy = aimy;
        this.oldx = aimx;
        this.oldy = aimy;
	}
	
	public void setAimLocation(int aimx, int aimy){
        this.oldx = this.aimx;
        this.oldy = this.aimy;
		this.aimx = aimx;
		this.aimy = aimy;
	}

	public float getMidLocationX(int percent){
		return (oldx-aimx)/100*percent;
	}
	public float getMidLocationY(int percent){
		return (oldy-aimy)/100*percent;
	}
	public int getAimX(){return aimx;}
	public int getAimY(){return aimy;}
}